Skip to main content
POST
/
action
/
social_planner_generate_plan_action
[SC1] Generate Social Content Plan
curl --request POST \
  --url https://api-lr.agent.ai/v1/action/social_planner_generate_plan_action \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content_pillars": "<string>",
  "planning_period": "this_week",
  "num_posts": "5",
  "output_variable_name": "social_plan",
  "specific_topics": "<string>",
  "brand_voice": "professional_authoritative",
  "performance_context": "<string>"
}
'
{
  "status": 123,
  "response": {}
}

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/integrations#api)

Body

application/json
content_pillars
string
required

Comma-separated list of 3-5 content themes (e.g. Leadership, Marketing tips, Customer stories).

planning_period
enum<string>
default:this_week
required
Available options:
this_week,
next_week
num_posts
enum<string>
default:5
required
Available options:
3,
5,
7
output_variable_name
string
default:social_plan
required

Variable name for the result.

Pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
specific_topics
string

Any specific topics, product launches, or events to include this week.

brand_voice
enum<string>
Available options:
professional_authoritative,
conversational_relatable,
bold_opinionated,
warm_supportive,
witty_playful,
educational_helpful
performance_context
string

Optional JSON from Social Performance Analyzer with top_topics, top_formats, recommendations.

Response

Successful response

status
integer<int32>

HTTP status code of the action response

response
object

Response data from the action